package ie.ucd.ABLE.MachineLearning;

import java.sql.Timestamp;

public class ApplianceEventQueue {

	private Timestamp StartDateTime; 		//A must needed field
	private Timestamp EndDateTime; 		//A must needed field
	private int eventStartIndex; 			//Optional	
	private int eventEndIndex; 			//Optional
	private double lastStableBaseLine;	//A must needed field
	private double changeValue;


	public ApplianceEventQueue(){
		setStartDateTime(null);
		setEndDateTime(null);
		setEventStartIndex(0);
		setEventEndIndex(0);
		setLastStableBaseLine(0);
		setChangeValue(0);		
	}

	public ApplianceEventQueue(Timestamp sTime, int ithIndex, double lastSBaseLine, double changeV){
		setStartDateTime(sTime);
		setEventStartIndex(ithIndex);
		setLastStableBaseLine(lastSBaseLine);
		setChangeValue(changeV);
		setEventEndIndex(0);
		setEndDateTime(null);
		}
	
	// setters and getters
	
	public Timestamp getStartDateTime() {
		return StartDateTime;
	}

	public void setStartDateTime(Timestamp startDateTime) {
		StartDateTime = startDateTime;
	}

	public Timestamp getEndDateTime() {
		return EndDateTime;
	}

	public void setEndDateTime(Timestamp endDateTime) {
		EndDateTime = endDateTime;
	}

	public int getEventStartIndex() {
		return eventStartIndex;
	}
	
	public void setEventStartIndex(int senseValue) {
		eventStartIndex = senseValue;
	}
	
	public int getEventEndIndex() {
		return eventEndIndex;
	}

	public void setEventEndIndex(int eventEndIndex) {
		this.eventEndIndex = eventEndIndex;
	}
	
	public double getLastStableBaseLine() {
		return lastStableBaseLine;
	}

	public void setLastStableBaseLine(double lastStableBaseLine) {
		this.lastStableBaseLine = lastStableBaseLine;
	}
	
	public double getChangeValue() {
		return changeValue;
	}
	
	public void setChangeValue(double changeValue) {
		this.changeValue = changeValue;
	}
}
